home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / IAC_STUF / KILLDRIV.C < prev    next >
C/C++ Source or Header  |  1989-11-29  |  327b  |  25 lines

  1.  
  2.  
  3.  
  4. main()
  5. {
  6.     int err;
  7.     int driverRef;
  8.     
  9.     printf("Looking for the IAC Driver...\n\n");
  10.     
  11.     err = OpenDriver("\p.IAC-DRIVER", &driverRef);
  12.  
  13.     printf("Closing the IAC Driver...\n\n");
  14.  
  15.     err = CloseDriver(driverRef);
  16.     
  17.     if (err == noErr)
  18.         printf("Successfully closed.\n");
  19.     else
  20.         printf("Error closing driver (%d)\n", err);
  21.  
  22. }
  23.  
  24.     
  25.